<?php
/**
 * Created by PhpStorm.
 * User: chy
 * Date: 2017/4/5
 * Time: 10:36
 */?>
<?php foreach ($items as $item){?>
    <div class="question_info">
        <p class="title"><span class="question">问</span><span><?=$item['title']?></span></p>
        <p class="date">日期：<?=date('Y-m-d',$item['created_at'])?> | 阅读：<?=$item['views']?>次</p>
        <p class="info"><span class="answer">答</span><span><?=$item['intro']?></span></p>
        <div class="clearfix"></div>
        <a href="<?=\yii\helpers\Url::to(['/post', 'id' => $item['id']])?>"><img src="images/more_flag.png">查看详情</a>
    </div>
<?php }?>
